.pg-preview-wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(51, 51, 51, 0.95);
  z-index: $z-index-preview;
  color: $white;
  overflow: hidden;
}

.pg-preview-header {
  padding: 0;
  background-color: $black;
  height: 50px;
  display: flex;
  align-items: center;

  .title {
    display: inline-block;
    flex-grow: 1;
    padding: 0 10px;
    display: flex;
    align-items: center;

    span.icon {
      display: inline-block;
      height: 50px;
      min-width: 50px;
      background-repeat: no-repeat;
      background-position: center center;
      background-image: url("");
    }
  }

  .controls {
    cursor: pointer;
    user-select: none;
    height: 50px;

    li {
      display: inline-block;
      min-width: 50px;
      height: 100%;
      background-repeat: no-repeat;
      background-position: center center;

      &:hover {
        background-color: lighten($black, 30%);
      }
    }

    li + li {
      border-left: 1px solid $border-color;
    }

    .download {
      background-image: url("");
    }

    .close {
      background-image: url("");
    }

  }
}

.pg-preview-body {
  position: relative;
  width: 100vw;
  height: calc(100vh - 50px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  video {
    width: 100%;
    height: 62.5%;

    &:focus {
      outline: none;
    }
  }

  img {
    position: absolute;
    cursor: grab;

    &.cursor-grabbing {
      cursor: grabbing;
    }
  }

  .scale-info {
    position: absolute;
    text-align: center;
    width: 80px;
    height: 40px;
    border-radius: $border-radius-lg;
    background: #333333;
    background: rgba(38, 38, 38, 0.5);
    line-height: 40px;
    color: #fff;
    font-weight: 900;
  }

  .arrow {
    position: absolute;
    display: block;
    width: 65px;
    height: 100px;
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
    transition: background-color .4s ease;

    &:hover {
      background-color: rgba(0, 0, 0, 0.8);
    }
  }

  .arrow.prev {
    left: 0;
    border-top-right-radius: $border-radius-lg;
    border-bottom-right-radius: $border-radius-lg;
    background-image: url("");
  }

  .arrow.next {
    right: 0;
    border-top-left-radius: $border-radius-lg;
    border-bottom-left-radius: $border-radius-lg;
    background-image: url("");
  }

  .toolbar {
    position: absolute;
    bottom: 50px;
    height: 50px;
    background-color: #333333;
    overflow: hidden;
    border-radius: $border-radius-lg;
    cursor: pointer;

    li {
      display: inline-block;
      width: 50px;
      height: 100%;
      background-repeat: no-repeat;
      background-position: center center;

      &:hover {
        background-color: lighten($black, 30%);
      }

    }

    li.rotate {
      background-size: 22px 22px;
      background-image: url("");
    }

    li.minus {
      background-image: url("");
    }

    li.plus {
      background-image: url("");
    }
  }
}

.pg-preview-footer {
  height: 100px;
}